package javaeSE.authority;

public class Test {
    public int a = 10;
    public int b =100;
}
interface Animal {
    public void eat();
    public void travel();
}
   class MammalInt implements Animal{
    public int a = 10;
    public int b =100;
    public void eat(){
        System.out.println("Mammal eats");
    }

    public void travel(){
        System.out.println("Mammal travels");
    }

    public int noOfLegs(){
        return 0;
    }

    public static void main(String args[]){
        MammalInt m = new MammalInt();
        m.eat();
        m.travel();
    }
}
